package com.fh.alipay.annotation;

import com.fh.alipay.annotation.impl.DateCheckValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @FileName: DateCheck
 * @Author: fh
 * @Date: 2022/1/19
 * @Description: 日期格式校验
 * @Version: 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@Documented
@Constraint(validatedBy = DateCheckValidator.class)
public @interface DateCheck {

    String message() default "日期格式校验错误";

    String pattern();


    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
